<%@ Register TagPrefix="cc2" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.SalaryGrid" CodeFile="SalaryGrid.aspx.cs"
    AutoEventWireup="true" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Salary Grid</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="SalaryGridForm" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc2:Header ID="insightHeader" runat="server"></cc2:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:PersonnelSubNavigation ID="personnelSubNavigation" runat="server"></cc2:PersonnelSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:BreadCrumb ID="breadCrumb" runat="server"></cc1:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="10" cellpadding="10" width="100%" style="background-color:#ffffff">
                        <tr>
                            <td>
                                <cc1:ExpandingPanel ID="expandingPanel" runat="server" ExpansionToggler="expansionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc2:CommonSearch ID="commonSearch" runat="server" Module="Personnel" ExtendedSearchControl="personnelSearch"
                                                        OnSearch="OnSearch" OnClearSelection="OnClearSelection" COSPickerVisible="False"
                                                        Field1Prompt="Employee Last Name:" Field1ID="employeeLastName" Field2Prompt="Employee First Name:"
                                                        Field2ID="employeeFirstName" ViewOptionVisible="false" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc1:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc2:PersonnelSearch ID="personnelSearch" runat="server" ViewByEmployeeFundExpiredVisible="False" />
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc1:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server"></cc2:SearchCriteriaDisplay>
                                <input id="hiddenSearchCriteria" runat="server" type="hidden" /></td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc1:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
                                </cc1:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc1:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td class="PageName">
                                Salary Grid</td>
                            <td align="center">
                                <cc2:RefreshDates ID="refreshDates" runat="server" SalaryAsOfDateVisible="True" POAPAsOfDateVisible="False"
                                    GLAsOfDateVisible="False" Visible="True"></cc2:RefreshDates>
                            </td>
                            <td align="right">
                                <cc2:InsightDownloadBar ID="reportDownload" runat="server" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td>
                                <cc1:Pager ID="pagerAboveDatagrid" runat="server"></cc1:Pager>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataGrid ID="salaryGridDetails" CssClass="DataGrid" Width="100%" runat="server"
                                    AutoGenerateColumns="False" AllowPaging="True" AllowCustomPaging="True" AllowSorting="True"
                                    ShowFooter="True">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                    <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                    <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                    <FooterStyle CssClass="DataGridFooter"></FooterStyle>
                                    <Columns>
                                        <asp:BoundColumn Visible="False" DataField="EmployeeJobMapId" SortExpression="Id"
                                            ReadOnly="True" HeaderText="EmployeeJobMapID"></asp:BoundColumn>
                                        <asp:ButtonColumn DataTextField="EmployeeName" SortExpression="EmployeeName" HeaderText="Name"
                                            CommandName="SelectEmployee"></asp:ButtonColumn>
                                        <asp:BoundColumn DataField="CurrentTitle" SortExpression="CurrentTitle" ReadOnly="True"
                                            HeaderText="Current Title"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="CurrentSalary" SortExpression="CurrentSalary" ReadOnly="True"
                                            HeaderText="Current Salary" DataFormatString="{0:C}">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="TotalSalary" SortExpression="TotalSalary" ReadOnly="True"
                                            HeaderText="Total Salary" DataFormatString="{0:C}">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:BoundColumn>
                                        <asp:ButtonColumn DataTextField="ResearchGrant" SortExpression="ResearchGrant" HeaderText="Research Grant"
                                            CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                        <asp:ButtonColumn DataTextField="ResearchSundry" SortExpression="ResearchSundry"
                                            HeaderText="Research Sundry" CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                        <asp:ButtonColumn DataTextField="Discretionary" SortExpression="Discretionary" HeaderText="Discretionary / Sundry"
                                            CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                        <asp:ButtonColumn DataTextField="OperatingFunds" SortExpression="OperatingFunds"
                                            HeaderText="Operating Funds" CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                        <asp:ButtonColumn DataTextField="POFunds" SortExpression="POFunds" HeaderText="PO Funds"
                                            CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                        <asp:ButtonColumn DataTextField="HMSFunds" SortExpression="HMSFunds" HeaderText="HMS Funds"
                                            CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                        <asp:ButtonColumn DataTextField="VA" SortExpression="VA" HeaderText="VA" CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                        <asp:ButtonColumn DataTextField="Other" SortExpression="Other" HeaderText="Other"
                                            CommandName="SelectEmployee">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                            <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                        </asp:ButtonColumn>
                                    </Columns>
                                    <PagerStyle Visible="False"></PagerStyle>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <cc1:Pager ID="pagerBelowDatagrid" runat="server"></cc1:Pager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
